home *** CD-ROM | disk | FTP | other *** search
- global gCustompath, gMovieName, gFrameName, gICVquadspeed
-
- on startMovie
- puppetSound(0)
- if the platform = "Windows,32" then
- if voidp(gICVquadspeed) then
- CPUtest()
- end if
- else
- set gICVquadspeed to 0
- end if
- end
-
- on CPUtest
- cursor(4)
- startTimer()
- repeat with i = 1 to 20000
- set dummyVar to sin(128)
- end repeat
- set myCPUtime to the timer / 60.0
- cursor(-1)
- if myCPUtime > 1.30000000000000004 then
- set gICVquadspeed to 0
- else
- set gICVquadspeed to 1
- end if
- end
-
- on customGoMovie whichMovie, whichFrame
- if voidp(whichFrame) then
- set gMovieName to whichMovie
- go("exitblank")
- else
- set gMovieName to whichMovie
- set gFrameName to whichFrame
- go("exitblank2")
- end if
- end
-